/**
 *Project: SSHDemo2013
 *File: cn.xkshow.demo.service.UniversalService.java 
 *Author: hardy(admin@xkshow.cn) Copyright
 ****************************************************************
 *   VERSION       DATE            BY       CHANGE/COMMENT
 * --------------------------------------------------------------
 *    1.0        2013-5-30         hardy         create
 ****************************************************************
 *note:
 ***************************************************************/ 
package cn.xkshow.demo.service;

import org.springframework.stereotype.Service;

import cn.xkshow.demo.dao.hibernate.UniversalDao;

@Service
public class UniversalService {	
	private UniversalDao universalDao;
	
	public void save(Object entity) {
		this.universalDao.save(entity);
	}
	
	public void saveOrUpdate(Object entity) {
		this.universalDao.saveOrUpdate(entity);
	}
	
	public void delete(Object entity) {
		this.universalDao.delete(entity);
	}
	
	public Object getEntity(String entity, Object eid) {
		return this.universalDao.getEntity(entity, eid);
	}
	
	public void setUniversalDao(UniversalDao universalDao) {
		this.universalDao = universalDao;
	}

}
